<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'id'); ?>
		<?php echo $form->textField($model,'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'user_contract'); ?>
		<?php echo $form->textField($model,'user_contract'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'user_username'); ?>
		<?php echo $form->textField($model,'user_username'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'type'); ?>
		<?php echo $form->dropDownList($model,'type',Lookup::items('ServiceType'),array('id'=>false,'prompt'=>'')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'ip'); ?>
		<?php echo $form->textField($model,'ip',array('size'=>25,'maxlength'=>25)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'cost'); ?>
		<?php echo $form->textField($model,'cost',array('size'=>12,'maxlength'=>12)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'cost_this_month'); ?>
		<?php echo $form->textField($model,'cost_this_month',array('size'=>12,'maxlength'=>12)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'packet_id'); ?>
		<?php echo $form->dropDownList($model,'packet_id',CHtml::listData(Packet::model()->active()->findAll(), 'id', 'name'),array('id'=>false,'prompt'=>'')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'speed_id'); ?>
		<?php echo $form->dropDownList($model,'speed_id',CHtml::listData(Speed::model()->active()->findAll(), 'id', 'name'),array('id'=>false,'prompt'=>'')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'comment'); ?>
		<?php echo $form->textField($model,'comment',array('size'=>60,'maxlength'=>128)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'start_date'); ?>
		<?php echo $form->textField($model,'start_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'end_date'); ?>
		<?php echo $form->textField($model,'end_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'is_blocked'); ?>
		<?php echo $form->checkBox($model,'is_blocked'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'pay_date'); ?>
		<?php echo $form->textField($model,'pay_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'last_pay_date'); ?>
		<?php echo $form->textField($model,'last_pay_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'is_active'); ?>
		<?php echo $form->checkBox($model,'is_active'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'create_time'); ?>
		<?php echo $form->textField($model,'create_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'update_time'); ?>
		<?php echo $form->textField($model,'update_time'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('main','Search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->